package com.qk.controller;

import com.qk.common.Result;
import com.qk.entity.OverviewVo;
import com.qk.service.ReportService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: ReportController
 * Package: com.qk.controller
 * Description:
 *
 * @Author zt
 * @Create 2025/8/5 10:42
 * @Version 1.0
 */
@Slf4j
@RestController
@RequestMapping("/report")
public class ReportController {
    @Autowired
    private ReportService reportService;

    /*
    首页信息概览
     */
    @GetMapping("/overview")
    public Result getOverview() {
        log.info("首页信息概览");
        OverviewVo overviewVo = reportService.getOverview();
        return Result.success(overviewVo);
    }
}
